home *** CD-ROM | disk | FTP | other *** search
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- INDEX
- File Indexing Utility
- by
- Greg Haley
-
- 1
- INTRODUCTION
-
- INDEX automatically creates an index for any text file using a list of
- words that you provide. The index for this document was created using INDEX.
- Here's how it works:
- 1) You edit the file to be indexed, inserting form feed characters in the
- file where ever you want a new page.
-
- 2) You create and edit a new file consisting of a list of words you wish
- indexed.
-
- 3) You 3) You invoke NDEX, and it searches the file from step 1 for all the words
- in the file from step 2.
-
- 4) INDEX produces a 3rd file containing the index.
-
- 5) The index may now be merged with the file from step 1 to make a complete
- document.
-
- 2
- GETTING STARTED
-
- To run INDEX, you will need at least 128k of RAM and any computer capable
- of running MS-DOS version 2.xx. You will also need a word processor or text
- editor to create the word list file and do minor touch-ups on the index file.
-
- 3
- PREPARING A TEXT FILE
-
- INDEX looks for form feed characters in the input file to indicate the end of
- a page. It is convenient to use the form feed character because this character
- also causes the printer to skip to the next page. Therefore, The MS-DOS command
- PRINT may be used to print the entire document, form feeds and all.
-
- Entering the form feed characters into the text is a simple matter. Most
- text editors and word processors will let you enter control characters
- directly into the text. If you're using one of these editors, position the
- cursor where you want the end of the page, and press CONTROL L. (Note that
- you must hold CONTROL down while pressing L.) If your editor won't let you
- enter CONTROL L's, try holding down the ALT key while typing the three
- digits 0, 1, and 2. This procedure lets you enter control characters by
- typing in it's ASCII value; in this case, 12.
-
- When you've finished entering the form feeds, save the file and create
- a word list file.
-
- 4
- CREATING A WORD LIST FILE
-
- The word list file is nothing more than a list of words you want indexed.
- The words may be in either upper or lower case and may be in any format.
- However, it is easier to keep up with the words if you limit them to one
- word per line. Also, it should be noted that the words may be in any order,
- INDEX will sort them automatically.
-
- After you've created the word list file and inserted form feed characters
- in the original text, you're ready to make an index file.
-
- 5
- INVOKING INDEX
-
- To run INDEX, type:
-
- INDEX input_pathname output_pathname word_list_pathname
-
- where:
-
- input_pathname is the pathname of the file to be indexed.
- output_pathname is the pathname where the index file will be created.
- word_list_pathname is the pathname of the word list file.
-
- INDEX will first open all three files, and then read the entire contents
- of the word list file. INDEX then displays the number of words it found,
- scans the input file, and writes the index to the output file.
-
- 6
- TOUCHING UP THE INDEX FILE
-
- Since INDEX converts text from both the input file and the word list file
- to lower case, words from the word list file will match both upper and lower
- case characters in the input file. Thus, the resulting index file is all in
- lower case. You may wish to use your editor to make minor changes to the
- index file. Also, the index file may be longer than a printed page, so you may
- wish to insert form feed characters into it.
- After you make whatever changes you wish to the index file, you're ready to
- merge the index file with your original text file.
-
- 7
- MERGING THE FILES
-
- After the index file is created, you will probably want to merge the index
- file with your original text. This may be done using the MS-DOS COPY command.
- If the original text is named DOCUMENT.TXT and the index file is named
- DOCUMENT.IND, and you want the merged file to be named DOCUMENT.DOC, you
- would type:
-
- COPY DOCUMENT.TXT+DOCUMENT.IND DOCUMENT.DOC
-
- The resulting file DOCUMENT.DOC contains the original text plus the index.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- * MS-DOS is a trademark of Microsoft, Inc.
-
- 8
- INDEX
-
-
- alt keys ............................................................ 3
-
- case, upper and lower ........................................... 4, 6
- control L ........................................................... 3
-
- editor ...................................................... 2, 3, 6
-
- form feed ............................................... 1, 3, 4, 6
-
- index ....................................... 1, 2, 3, 4, 5, 6, 7
- input file .................................................. 3, 5, 6
-
- merge ........................................................... 6, 7
- MS-DOS ...................................................... 2, 3, 7
-
- output file ......................................................... 5
-
- pathnames ........................................................... 5
- print ............................................................... 3
-
- RAM ................................................................. 2
-
- sort ................................................................ 4
-
- touching up the index file .......................................... 6
-
- word list file ...................................... 2, 3, 4, 5, 6 ..........................................